package com.example.shushiyunsst.fragment.main.transaction.bean

import com.example.shushiyunsst.R
import java.io.Serializable
import java.math.BigDecimal

const val TRANSACTION_BUY = 0;

const val TRANSACTION_SELL = 1

data class ContentListBean(
    val transactionType: Int,
    val transactionTime: String,
    val transactionPrice: BigDecimal,
    val transactionCount: BigDecimal,
    val actuallyDeal: BigDecimal
) : Serializable {
    fun transactionTypeTitle(): Int {
        return when (transactionType) {
            TRANSACTION_BUY -> R.string.transaction_buy_in
            TRANSACTION_SELL -> R.string.transaction_sell_out
            else -> 0
        }
    }
}